// 处理 铅笔小说 searchkey参数转换 例如 辰东 ==> %B3%BD%B6%AB
const iconv = require('iconv-lite');
function textToUrlEnCode() {
	const encodedText = iconv
		.encode(text, 'gb2312')
		.toString('hex')
		.toUpperCase();
	return encodedText.replace(/(\w{2})/g, '%$1');
}

module.exports = {
	textToUrlEnCode,
};
